package cn.fintecher.ams.service.attendance;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.core.env.Environment;

@SpringBootApplication
@EnableEurekaClient
@EnableDiscoveryClient
public class AttendanceApplication {

    private final static Log logger = LogFactory.getLog(AttendanceApplication.class);

    public static void main(String[] args) {
        //SpringApplication.run(UserApplication.class, args);
        SpringApplication application = new SpringApplication(AttendanceApplication.class);
        Environment environment = application.run(args).getEnvironment();
        logger.info("SwaggerUI: 	http://localhost:" + environment.getProperty("server.port") + "/swagger-ui.html");
    }
}